import {extend} from "umi-request"
import storageUtils from "../utils/storageUtils"

const request = extend({
    headers: {
        Authentication: storageUtils.getStorage('token'),
        "Content-Type": "application/x-www-form-urlencoded"
    },
    errorHandler: err => {
        console.log("请求失败", err);
    }
})
export default request